﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="step_list.aspx.cs" Inherits="AutoFix.step_list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="AdditionalPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MessagePlaceHolder" runat="server">
    Shows the steps list for an given article
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div id="pageActionMessage" runat="server"></div>
    <div class="item">
        <asp:DataList ID="dtlSteps" runat="server" RepeatDirection="Horizontal" RepeatColumns="4">
            <ItemTemplate>
                <div class="item-box-holder">
                    <div class="item-holder-one">
                        <asp:HyperLink ID="lnkEditSteps" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.StepName") %>' CssClass="text-size-two" NavigateUrl='<%# "~/edit_step.aspx?step=" + DataBinder.Eval(Container, "DataItem.StepID") %>' />

                        <br />
                        <p class="text-size-one"><%# DataBinder.Eval(Container, "DataItem.StepContent") %></p>

                    </div>
                    <div class="clear"></div>
                    <div class="common-holder">
                        <asp:Button ID="btnDeleteSteps" runat="server" Text="Delete Steps" CssClass="remove-button" CommandName="Delete" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.StepID") %>' />
                        <asp:Button ID="btnEditSteps" runat="server" Text="Edit Steps" CssClass="button" PostBackUrl='<%# "~/edit_step.aspx?step=" + DataBinder.Eval(Container, "DataItem.StepID") %>' Visible='<%# DataBinder.Eval(Container, "DataItem.IsPublished") %>' />

                        <div class="clear"></div>
                    </div>
                </div>
            </ItemTemplate>

        </asp:DataList>        
        <div class="clear"></div>
    </div>


</asp:Content>
